<div class="insurance-all">
  <div class="{% unless section.settings.full_width %}page-width{% endunless %}">
      {%- if section.settings.heading != blank -%}
       <h2 class="center title"> {{ section.settings.heading | escape }}</h2>
     {%- endif -%}
     <div class="insurance-content">
      {%- for block in section.blocks -%}
         <div class="top">
            <span>{{ block.settings.html }}</span>
            {% if block.settings.text != blank %}
             <span class="text">{{ block.settings.text }}</span>
            {% endif %}
         </div>
         {% if block.settings.richtext != blank %}
          <div class="rte"> {{ block.settings.richtext }}
          {% if block.settings.note != blank %}
          <div class="note">{{ block.settings.note }}</div>
        {% endif %}
          </div>
        {% endif %}
      {%- endfor -%}
      {% if section.settings.note != blank %}
        <div class="note">{{ section.settings.note }}</div>
      {% endif %}
      </div>
  </div>
</div>



{% schema %}
    {
      "name": "Qover protect",
      "tag": "section",
      "class": "spaced-section spaced-section--full-width",
      "settings": [
        {
          "type": "text",
          "id": "heading",
          "label": "Heading"
        },
        {
            "type": "richtext",
            "id": "note",
            "label": "Note"
         },
        {
          "type": "checkbox",
          "id": "full_width",
          "label": "Full width",
          "default": false
        }
      ],
      "blocks": [
      {
        "type": "column",
        "name": "column",
        "settings": [
          {
            "type": "html",
            "id": "html",
            "label": "Icon"
          },
          {
            "type": "text",
            "id": "text",
            "label": "text"
          },
          {
            "type": "richtext",
            "id": "richtext",
            "label": "richtext"
          },
          {
            "type": "richtext",
            "id": "note",
            "label": "Note"
          }
        ]
      }
    ],
      "presets": [
        {
          "name": "Qover protect"
        }
      ]
    }
      {% endschema %}